package projects.ufam.filters;

import java.awt.geom.Point2D;
import java.awt.geom.Point2D.Double;
import java.util.ArrayList;

import projects.defaultProject.models.mobilityModels.RandomWayPoint;
import projects.ufam.CustomGlobal;
import sinalgo.configuration.Configuration;

public class Trajectory {
	ArrayList<Point2D> points = new ArrayList<Point2D>();

	public void generateTrajectory(Double double1, int size, double speed) {
		double x = 0, y = 0, r;
		for (double i = 0; i < size; i++) {
			x += speed;
			y = 10 * Math.sin(2.0 * Math.PI * i / (double) 500);
			points.add(new Point2D.Double(x, y));
		}
	}

	public int numberPoints() {
		return points.size();
	}

	public Point2D pointAt(int k) {
		return points.get(k);
	}

}
